package com.iman.manjusri.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import com.iman.common.support.Page;
import com.iman.manjusri.mappers.GroupMapper;
import com.iman.manjusri.mappers.HomeMapper;
import com.iman.manjusri.service.GroupService;
import com.iman.manjusri.vo.GroupInfoVo;
import com.iman.manjusri.vo.HomeVo;

@Service
public class GroupServiceImpl implements GroupService {
	@Inject
	private GroupMapper groupMapper;

	@Override
	public List<GroupInfoVo> getThreeGroupInfo() {

		Map<String, Object> params = new HashMap<String, Object>();
		List<GroupInfoVo> result = null;
		params.put("offset", 0);
		params.put("limit", 3);
		result = groupMapper.getThreeGroupInfo(params);
		return result;
	}


}
